package com.robot.feign;

import com.robot.smartqq.constant.ApiURL;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * Created by Administrator on 2017/8/28 0028.
 */
@FeignClient(value = "qqservice",url = "https://ssl.ptlogin2.qq.com/ptqrshow")
public interface QqClient {
    //appid=501004106&e=0&l=M&s=5&d=72&v=4&t=0.1
    @RequestMapping(value = "/qq/qr",method = RequestMethod.GET)
    @Headers("User-Agent:"+ApiURL.USER_AGENT)
    ResponseEntity getQr(@RequestParam("appid")int appid, @RequestParam("e") int e, @RequestParam("l") String l, @RequestParam("s") int s, @RequestParam("d") int d, @RequestParam("v") int v, @RequestParam("t") double t, @RequestParam("daid") int daid);
}
